

<%@ page import="com.surelution.projects.crm.CardConsumeRaw" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'cardConsumeRaw.label', default: 'CardConsumeRaw')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${cardConsumeRawInstance}">
            <div class="errors">
                <g:renderErrors bean="${cardConsumeRawInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${cardConsumeRawInstance?.id}" />
                <g:hiddenField name="version" value="${cardConsumeRawInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="accountAcceptBranch"><g:message code="cardConsumeRaw.accountAcceptBranch.label" default="Account Accept Branch" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'accountAcceptBranch', 'errors')}">
                                    <g:textField name="accountAcceptBranch" value="${cardConsumeRawInstance?.accountAcceptBranch}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="amount"><g:message code="cardConsumeRaw.amount.label" default="Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'amount', 'errors')}">
                                    <g:textField name="amount" value="${cardConsumeRawInstance?.amount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="businessDate"><g:message code="cardConsumeRaw.businessDate.label" default="Business Date" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'businessDate', 'errors')}">
                                    <g:textField name="businessDate" value="${cardConsumeRawInstance?.businessDate}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="cardNo"><g:message code="cardConsumeRaw.cardNo.label" default="Card No" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'cardNo', 'errors')}">
                                    <g:textField name="cardNo" value="${cardConsumeRawInstance?.cardNo}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="discount"><g:message code="cardConsumeRaw.discount.label" default="Discount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'discount', 'errors')}">
                                    <g:textField name="discount" value="${cardConsumeRawInstance?.discount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="goodsType"><g:message code="cardConsumeRaw.goodsType.label" default="Goods Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'goodsType', 'errors')}">
                                    <g:textField name="goodsType" value="${cardConsumeRawInstance?.goodsType}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="grayTrade"><g:message code="cardConsumeRaw.grayTrade.label" default="Gray Trade" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'grayTrade', 'errors')}">
                                    <g:textField name="grayTrade" value="${cardConsumeRawInstance?.grayTrade}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="holderName"><g:message code="cardConsumeRaw.holderName.label" default="Holder Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'holderName', 'errors')}">
                                    <g:textField name="holderName" value="${cardConsumeRawInstance?.holderName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="preTrandeBalance"><g:message code="cardConsumeRaw.preTrandeBalance.label" default="Pre Trande Balance" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'preTrandeBalance', 'errors')}">
                                    <g:textField name="preTrandeBalance" value="${cardConsumeRawInstance?.preTrandeBalance}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tradeAt"><g:message code="cardConsumeRaw.tradeAt.label" default="Trade At" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'tradeAt', 'errors')}">
                                    <g:textField name="tradeAt" value="${cardConsumeRawInstance?.tradeAt}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tradeDate"><g:message code="cardConsumeRaw.tradeDate.label" default="Trade Date" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'tradeDate', 'errors')}">
                                    <g:textField name="tradeDate" value="${cardConsumeRawInstance?.tradeDate}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tradeTime"><g:message code="cardConsumeRaw.tradeTime.label" default="Trade Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'tradeTime', 'errors')}">
                                    <g:textField name="tradeTime" value="${cardConsumeRawInstance?.tradeTime}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tradeType"><g:message code="cardConsumeRaw.tradeType.label" default="Trade Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'tradeType', 'errors')}">
                                    <g:textField name="tradeType" value="${cardConsumeRawInstance?.tradeType}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="vehicleNo"><g:message code="cardConsumeRaw.vehicleNo.label" default="Vehicle No" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'vehicleNo', 'errors')}">
                                    <g:textField name="vehicleNo" value="${cardConsumeRawInstance?.vehicleNo}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="volume"><g:message code="cardConsumeRaw.volume.label" default="Volume" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: cardConsumeRawInstance, field: 'volume', 'errors')}">
                                    <g:textField name="volume" value="${cardConsumeRawInstance?.volume}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
